package com.ruoyi.zq.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.common.exception.job.TaskException;
import com.ruoyi.common.zq.domin.ZqVolunteerActivity;
import com.ruoyi.common.zq.domin.vo.VolunteerActivityVO;
import org.quartz.SchedulerException;

import java.util.List;

/**
 *
 *
 * @Author: LoneyFeather
 * @Date: Created in 15:47 2021/12/24
 */
public interface VolunteerActivityService extends IService<ZqVolunteerActivity> {


    List<VolunteerActivityVO> activityList(VolunteerActivityVO activityDTO);

    VolunteerActivityVO getInforByActivityId(Long activityId);

    int addActivity(ZqVolunteerActivity activityDTO) throws TaskException, SchedulerException;

    int updateAtivity(ZqVolunteerActivity activity);

    /**
     * 查询改用户是否有该条数据的权限
     * @param activityId
     * @return
     */
    Boolean controlByActivityId(Long activityId);

    int removeActivity(Long[] activityIds);
}
